package ltd.cheers.mall.common;

/**
 * @author: LiHuanYang
 * @date: 2020/3/24 下午 08:51
 * @apiNote 常量配置
 */
public class Constants {

    public final static String FILE_UPLOAD_DIC = "D:\\WorkSpace\\image\\upload\\";//上传文件的默认url前缀，根据部署设置自行修改

    public final static int INDEX_CAROUSEL_NUMBER = 5;//首页轮播图数量(可根据自身需求修改)

    public final static int INDEX_CATEGORY_NUMBER = 10;//首页一级分类的最大数量

    public final static int SEARCH_CATEGORY_NUMBER = 8;//搜索页一级分类的最大数量

    public final static int INDEX_GOODS_HOT_NUMBER = 4;//首页热卖商品数量
    public final static int INDEX_GOODS_NEW_NUMBER = 5;//首页新品数量
    public final static int INDEX_GOODS_RECOMMOND_NUMBER = 10;//首页推荐商品数量

    public final static int SHOPPING_CART_ITEM_TOTAL_NUMBER = 13;//购物车中商品的最大数量(可根据自身需求修改)

    public final static int SHOPPING_CART_ITEM_LIMIT_NUMBER = 5;//购物车中单个商品的最大购买数量(可根据自身需求修改)

    public final static String MALL_VERIFY_CODE_KEY = "mallVerifyCode";//验证码key

    public final static String MALL_USER_SESSION_KEY = "cheersMallUser";//session中user的key

    public final static int GOODS_SEARCH_PAGE_LIMIT = 10;//搜索分页的默认条数(每页10条)

    public final static int ORDER_SEARCH_PAGE_LIMIT = 3;//我的订单列表分页的默认条数(每页3条)

    public final static int SELL_STATUS_UP = 0;//商品上架状态
    public final static int SELL_STATUS_DOWN = 1;//商品下架状态

    public final static String APP_ID = "2016102300746662";//沙箱支付宝环境发起支付请求的应用ID
    //生成的应用私钥
    public final static String APP_PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCQhZmIUJ4Rn/HOfhfmKOjpmPFAh9Y7C+1dWe21aLKUvX0jIzR+uFXTBH1P3FFwdrpBajCm4A9CXyOc1+br1FMi/tWHjUUCZ5WDy5Xb733z1KvXVceop8Azmb/mX/QgkF2jsDq90cCKrh5n83FD6PJkUnmLj00DtlPk0D1dfho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cxjQYNbTkS//U4Wr2Ew0yHmlL58lI+9bYLU2lQ5EtbeuGc+qv1bxDxoL1vWU2exYry7WKOOH8e8xpq8cUF0jy/3dckXNSSHtP/AqGPK/ekAXhkFrBNWys9yVrHjqvQ47rydiUzMmUP45AoGBAJDmtYNrANVu7C4k1YQA8H5F9E/avwCX9IxlGTsSOGTa+Y6RYj4uDd/w4VrssqqjnxUDTBdnYMsQ3pJm23Eevy3n0k0Pha8Q2uZOjHzphmCs4W79c7hStlZ/0uwxmmEOsIvt9Kampf+yc5cBsKZ3Zb/o+WFL8XU+OHXVoXjtGjNd";
    //支付宝公钥
    public final static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAi1nUJ9e2iEn/Usp+XyclvrtGLUziiPfWONyfbuohJkRSImDzRYUnOw252usRuy4vfrUlYGW4vBMVoOSYjEP8ZGT5CBzryvjX9ifkZDl/q9tB+dzgVnmpM2qbr6eIVep0lddqyNJQJyUnpgJ1qWVpy4TFcDHnHQaWiUyfvmgwdZJODWKHRwICBRTItGWw2f1Q/E/+4FZg6ODv0sDZX0+9N+WlLGIJRb9GBugi8cxFvwxF0QRz7V4hgSfHhAHO/SAFz8aTKslqioPqv6L40UnilkVaj4Ia4KiYjFPz1DUKV4llKbNHJT6A4Oxv4c7raC70oYJNO72Ku7FhdCbZXU6r6QIDAQAB";
    //这是沙箱接口路径,正式路径为https://openapi.alipay.com/gateway.do
    public final static String GATEWAY_URL ="https://openapi.alipaydev.com/gateway.do";//沙箱请求网关地址
    public final static String CHARSET = "UTF-8";// 编码
    public final static String FORMAT = "JSON";// 返回格式
    public final static String SIGN_TYPE = "RSA2";// 签名方式RSA2
    //支付宝服务器异步通知页面路径,付款完毕后会异步调用本项目的方法,必须为公网地址
    public final static String NOTIFY_URL = "http://localhost:8082/alipay/alipayNotifyNotice";
    //支付宝同步通知路径,也就是当付款完毕后跳转本项目的页面,可以不是公网地址
//    public final static String RETURN_URL = "http://localhost:8082/alipay/alipayReturnNotice";
    public final static String RETURN_URL = "http://localhost:8082/alipay/alipayReturnNotice";//本地回调
    public final static int ALIPAY_TYPE = 1;//支付宝支付类型为1 微信为2

}
